﻿using MathNet.Numerics.Distributions;
using MathNet.Numerics.LinearAlgebra.Double;

namespace Marvin.Categorization.NeuronalNetworks
{
    public class ParameterGeneratingLayer: Layer
    {
        public ParameterGeneratingLayer(int numberOfNeurons, Layer previousLayer, Matrix parameters = null) : base(numberOfNeurons, previousLayer, parameters)
        {
            if(parameters == null)
                Parameters = DenseMatrix.CreateRandom(NumberOfNeurons, previousLayer.NumberOfNeurons, new ContinuousUniform(0, 1));

        }
    }
}
